<template>
  <div class="banner_box">
    <van-swipe :autoplay="3000" indicator-color="red">
      <van-swipe-item v-for="(item, index) in currentGoods[0].banner_img" :key="index">
        <img :src="item" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  props:["currentGoods"],
  data() {
    return {
      // banner: [
      //   {
      //     img_banner_id: 1,
      //     img_url:"https://img3m7.ddimg.cn/61/9/29251987-1_e_3.jpg",
      //   },
      //   {
      //     img_banner_id: 2,
      //     img_url:"https://img3m7.ddimg.cn/61/9/29251987-2_e_3.jpg",
      //   },
      // ],
    };
  },
};
</script>

<style lang="less" scoped>
.banner_box {
  width: 100%;
  height: 375px;
  img {
    width: 100%;
    // height:104px;
  }
  .discoImg{
    height: 68px;
    border-radius: 0px 0px 10px 10px;
  }
}
</style>